]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme: Uniform the style of the dialog warnings
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 3 Oct 2025 02:37:49 +0000 (04:37 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 6 Oct 2025 12:15:34 +0000 (12:15 +0000)
The end session dialog is now using a new style for the warning messages
but this style is not re-used by other dialogs that have messages with a
similar role.

So be consistent, and use same style for all the dialogs that are
showing a warning or an info message, and in particular
 - Keyring dialog error messages
 - Polkit dialogs error and info messages
 - Conflicting dialog warning message

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3897>

data/theme/gnome-shell-sass/widgets/_dialogs.scss
data/theme/gnome-shell-sass/widgets/_login-lock.scss

index 1cf85f57cef2d49c78f822480d2eab554e6d63a9..0b61782befe4358af44a691e2cffb63ac9689f04 100644 (file)
   .prompt-dialog-null-label {
     @extend %caption;
     text-align: center;
+    padding: $base_padding * 1.5;
+    border-radius: $base_border_radius;
+    margin: $base_margin 0;
   }
 
   .prompt-dialog-error-label {
     color: $warning_color;
+    background-color: transparentize($warning_color, 0.9);
+  }
+
+  .prompt-dialog-info-label {
+    color: $fg_color;
+    background-color: transparentize($fg_color, 0.9);
   }
 }
 
index 4ac7c48295bce83a1eea32f388e10ff0576e9d55..b661e93c8d2aae131eb81efbd05a9d2300772fa7 100644 (file)
@@ -69,6 +69,10 @@ $_gdm_dialog_width: 25em;
   .conflicting-session-dialog-desc-warning {
     text-align: center;
     color: $warning_color;
+    background-color: transparentize($warning_color, 0.9);
+    padding: $base_padding * 1.5;
+    border-radius: $base_border_radius;
+    margin: $base_margin 0;
   }
 }